﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Buy.aspx.cs" Inherits="BalanceCenter_Buy" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>产品销售业务管理软件 - 会员中心</title>
    <link href="../style/css.css" type="text/css" rel="stylesheet" />
    <link href="../style/main.css" type="text/css" rel="stylesheet" />    

    <script src="../Components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function RegexUserName()
        {
            var UserName = document.getElementById("tbUserName").value;
            
            var reg = /^[A-Za-z0-9]+$/; 
            
            if(!reg.test(UserName))
            { 
                alert("消费ID只能由字母和数字组成！"); 
                
                return false; 
            } 
            if(UserName.length > 5)
            {
                alert("消费ID长度只能小于等于5！");                 
                document.getElementById("tbUserName").value = "";
                
                return false; 
            }
        }
    </script>
        
</head>
<body style="margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0;">
    <form id="form1" runat="server">
    <font face="宋体">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center">
                    <asp:Panel ID="Panel1" runat="server" Width="100%">
                        <br />
                        <span style="font-size: 12pt; color: #0099cc"><strong>网店注册协议</strong></span><br />
                        <br />
                        <table cellspacing="0" cellpadding="0" width="90%" align="center" border="0">
                            <tr>
                                <td width="9" style="height: 16px">
                                    <img height="19" src="../Images/Table1/table_leftUp.jpg" width="9">
                                </td>
                                <td background="../Images/Table1/table_Up.jpg" style="height: 16px">
                                    &nbsp;
                                </td>
                                <td width="9" style="height: 16px">
                                    <img height="19" src="../Images/Table1/table_rightUp.jpg" width="9">
                                </td>
                            </tr>
                            <tr>
                                <td width="9" background="../Images/Table1/table_left.jpg" style="height: 39px">
                                    &nbsp;
                                </td>
                                <td bgcolor="#f5faff" style="height: 39px" align="left">
                                    <asp:Label ID="labContent" runat="server"></asp:Label>
                                </td>
                                <td width="9" background="../Images/Table1/table_right.jpg" style="height: 39px">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="9">
                                    <img height="21" src="../Images/Table1/table_leftDown.jpg" width="9">
                                </td>
                                <td background="../Images/Table1/table_Down.jpg">
                                    &nbsp;
                                </td>
                                <td width="9">
                                    <img height="21" src="../Images/Table1/table_rightDown.jpg" width="9">
                                </td>
                            </tr>
                        </table>
                        <br />
                        <asp:Button ID="btnAccept" runat="server" BackColor="White" BorderStyle="None" Height="22px"
                            OnClick="btnLogin_Click" Style="background-image: url(../Images/btnBack06.gif);
                            cursor: hand" Text="同意" Width="65px" /><br />
                        &nbsp;
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Panel ID="Panel2" runat="server" Visible="False" Width="100%">
                        <strong><span style="font-size: 12pt; color: #0099cc">
                            <br />
                            消费者注册<br />
                        </span></strong>
                        <br />
                        <table cellspacing="0" cellpadding="0" align="center" border="0" 
                            style="width: 732px">
                            <tr>
                                <td width="9">
                                    <img height="19" src="../Images/Table1/table_leftUp.jpg" width="9">
                                </td>
                                <td background="../Images/Table1/table_Up.jpg">
                                    &nbsp;
                                </td>
                                <td width="9">
                                    <img height="19" src="../Images/Table1/table_rightUp.jpg" width="9">
                                </td>
                            </tr>
                            <tr>
                                <td width="9" background="../Images/Table1/table_left.jpg">
                                    &nbsp;
                                </td>
                                <td bgcolor="#f5faff">
                                    <table id="Table2" style="border-collapse: collapse" bordercolor="#ffffff" cellspacing="1"
                                        cellpadding="0" width="100%" bgcolor="#ffffff" border="0">
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                推荐人ID：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbCommendUserName" runat="server" MaxLength="50"></asp:TextBox>
                                                <span style="color: #ff0000">* 推荐人消费ID</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                上级位置ID：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbParentUserName" runat="server" MaxLength="50"></asp:TextBox>
                                                <span style="color: #ff0000">* 网络上级位置消费ID<asp:TextBox ID="tbParentUserID" runat="server"
                                                    Visible="False"></asp:TextBox></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                位置：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:RadioButton ID="rbL" runat="server" Checked="True" GroupName="LR" Text="左边" />&nbsp;<asp:RadioButton
                                                    ID="rbR" runat="server" GroupName="LR" Text="右边" />
                                                &nbsp; &nbsp; &nbsp; <span style="color: #ff0000">* 请选择放在上级消费ID的左边、右边</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:CheckBox ID="cbAutoNext" runat="server" Checked="True" Text="当上级位置的下方选择的位置已经被占用时，自动根据方向下滑" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                消费ID：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserName" runat="server" MaxLength="50"></asp:TextBox>&nbsp;<asp:Button
                                                    ID="btnCheckUserName" runat="server" Text="检测用户名" OnClick="btnCheckUserName_Click" /><font
                                                        color="red"> * 新注册的消费ID</font>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                真实姓名：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserRealityName" runat="server" MaxLength="50"></asp:TextBox>
                                                <span style="color: #ff0000">* 请输入消费ID的真实姓名</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                一级密码：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserPassword" runat="server" TextMode="Password" Width="127px"></asp:TextBox>
                                                <span style="color: #ff0000">* 请设置一个一级密码</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                一级密码确认：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserPassword_2" runat="server" TextMode="Password" Width="127px"></asp:TextBox>
                                                <span style="color: #ff0000">* 请再输入一次一级密码</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                二级密码：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserPassword2" runat="server" TextMode="Password" Width="127px"></asp:TextBox>
                                                <span style="color: #ff0000">* 请设置一个二级密码</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                二级密码确认：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserPassword2_2" runat="server" TextMode="Password" Width="127px"></asp:TextBox>
                                                <span style="color: #ff0000">* 请再输入一次二级密码</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                性别：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:RadioButton ID="rbUserSexM" runat="server" Checked="True" GroupName="Sex" Text="男" />&nbsp;<asp:RadioButton
                                                    ID="rbUserSexW" runat="server" GroupName="Sex" Text="女" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                出生日期：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <input name="tbUserBirthday" type="text" id="tbUserBirthday" onClick="WdatePicker()" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                城市：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="True" 
                                                    OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged" Width="129px">
                                                </asp:DropDownList>
                                                <asp:DropDownList ID="ddlCity" runat="server" Width="129px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                身份证号：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserIDCardNumber" runat="server" MaxLength="18" Width="226px"></asp:TextBox>
                                                <span style="color: #ff0000">* 请输入身份证号码</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                地址：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserAddress" runat="server" MaxLength="50" Width="226px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                Email：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserEmail" runat="server" MaxLength="50" Width="226px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                QQ：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserQQ" runat="server" MaxLength="50" Width="226px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                电话号码：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserTelephone" runat="server" MaxLength="50" Width="226px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                手机：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserMobile" runat="server" MaxLength="50" Width="226px"></asp:TextBox>
                                                <span style="color: #ff0000">* 请输入手机号码</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                银行类型：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:DropDownList ID="ddlBankName" runat="server" Width="130px">
                                                </asp:DropDownList>
                                                <span style="color: #ff0000">* 请选择开户行类型</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                开户行全名：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserBankNameDetail" runat="server" MaxLength="18" Width="226px"></asp:TextBox>
                                                <span style="color: #ff0000">* 请输入包含省、市的完整的开户行名称</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                银行卡号：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:TextBox ID="tbUserBankCardNumber" runat="server" MaxLength="50" Width="226px"></asp:TextBox>
                                                <span style="color: #ff0000">* 请填写开户名与真实姓名一致的银行卡号</span>
                                            </td>
                                        </tr>
                                        <tr runat="server">
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                购买金额：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:DropDownList ID="ddlUserType" runat="server" Width="130px"> 
                                                    <asp:ListItem Value="1" >网店建设及维护费</asp:ListItem>                                                                                                                                                                         
                                                </asp:DropDownList>
                                                <span style="color: #ff0000">* 请输入要消费的金额</span>
                                            </td>
                                        </tr>
                                        <tr runat="server" visible="false">
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                是否激活：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:CheckBox ID="cbisActivation" runat="server" Text="立即激活" Checked="false" />
                                            </td>
                                        </tr>
                                        <tr runat="server" visible="false">
                                            <td nowrap align="right" width="150" bgcolor="#dae6f3" height="25">
                                                是否空单：
                                            </td>
                                            <td bgcolor="#f0f4f8" align="left">
                                                <asp:CheckBox ID="cbisNullPerformance" runat="server" Text="空单" Checked="false" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td width="9" background="../Images/Table1/table_right.jpg">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="9">
                                    <img height="21" src="../Images/Table1/table_leftDown.jpg" width="9">
                                </td>
                                <td background="../Images/Table1/table_Down.jpg">
                                    &nbsp;
                                </td>
                                <td width="9">
                                    <img height="21" src="../Images/Table1/table_rightDown.jpg" width="9">
                                </td>
                            </tr>
                        </table>
                        <br />
                        <asp:Button ID="btnBuy" runat="server" BackColor="White" BorderStyle="None" Height="22px"
                            OnClick="btnBuy_Click" Style="background-image: url(../Images/btnBack06.gif);
                            cursor: hand" Text="立即注册" Width="65px" /><br />
                        &nbsp;
                    </asp:Panel>
                </td>
            </tr>
                       <tr>
                <td>
                    <asp:Panel ID="Panel3" runat="server" Visible="False" Width="100%" Height="100px">
                        <br />
                        <br />
                        <center>
                            <strong><span style="font-size: 12pt; color: #3399cc">消费ID注册成功！</span></strong>
                            <br />
                            <asp:Button ID="btnActiveUser" runat="server" Text="激活此会员" Height="22px" onclick="btnActiveUser_Click" Visible="false" />&nbsp;&nbsp;
                            <asp:Button ID="btnReturn" runat="server" Text="回到组织结构图" 
                                Height="22px" onclick="btnReturn_Click"  />
                            </center>
                    </asp:Panel>
                </td>
                
            </tr>
        </table>
    </font>
    </form>
</body>
</html>
